using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace bookmeetingroom.Data.Entities
{
    public class Building: EntityBase
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [StringLength(100)]
        public string Name { get; set; }

        [ForeignKey("Company")]
        public Guid CompanyId { get; set; }

        public Company Company { get; set; }

        [StringLength(500)]
        public string Address { get; set; }

        [Column(TypeName = "decimal(18,4)")]
        public decimal? Longtitude { get; set; }
        [Column(TypeName = "decimal(18,4)")]
        public decimal? Latitude { get; set; }

        public bool Default { get; set; }
        public List<MeetingRoom> MeetingRooms { get; set; } = new List<MeetingRoom>();


    }
}